package com.iplant.basic.service.po.update;

/**
 * Po模板属性信息
 *
 * @author YouWang·Peng
 * 2024-3-10 11:18:31
 */
public class CAPoProp {
    /**
     * 字段名称
     */
    public String FieldName = "";
    /**
     * 字段类型
     */
    public String FieldType = "";
    /**
     * 数据库字段
     */
    public boolean IsDBField = false;
    /**
     * 是否查询字段
     */
    public boolean IsQueryField = false;
    /**
     * 是否Join查询
     */
    public boolean IsJoinQuery = false;
    /**
     * Join关联字段名称
     */
    public String JoinFieldName = "";
    /**
     * Join关联表名
     */
    public String JoinTableName = "";
    /**
     * Join关联表别名
     */
    public String JoinTableAsName = "";
    /**
     * Join关联数据库实例
     */
    public String JoinSchema = "";
    /**
     * Join关联主表字段
     */
    public String JoinMainField = "";
    /**
     * Join关联字段Index
     */
    public int JoinIndex = 0;
    /**
     * Join关联自定义条件
     */
    public String JoinSelfCondition = "";
    /**
     * 缓存Multi关联字段名称
     */
    public String MultiJoinFieldName = "";
    /**
     * 缓存Multi关联主表字段
     */
    public String MultiJoinMainField = "";
    /**
     * 缓存Multi关联表名
     */
    public String MultiJoinTableName = "";
    /**
     * 缓存Multi关联数据库实例
     */
    public String MultiJoinSchema = "";
    /**
     * 字段描述
     */
    public String Description = "";
    /**
     * 查询类型
     */
    public String QueryType = "";

    public CAPoProp() {
    }

    public CAPoProp(String fieldName, String fieldType, boolean isDBField, boolean isQueryField, boolean isJoinQuery,
                    String joinFieldName, String joinTableName, String joinTableAsName, String joinSchema,
                    String joinMainField, int joinIndex, String joinSelfCondition, String multiJoinFieldName,
                    String multiJoinMainField, String multiJoinTableName, String multiJoinSchema, String description,
                    String queryType) {
        FieldName = fieldName;
        FieldType = fieldType;
        IsDBField = isDBField;
        IsQueryField = isQueryField;
        IsJoinQuery = isJoinQuery;
        JoinFieldName = joinFieldName;
        JoinTableName = joinTableName;
        JoinTableAsName = joinTableAsName;
        JoinSchema = joinSchema;
        JoinMainField = joinMainField;
        JoinIndex = joinIndex;
        JoinSelfCondition = joinSelfCondition;
        MultiJoinFieldName = multiJoinFieldName;
        MultiJoinMainField = multiJoinMainField;
        MultiJoinTableName = multiJoinTableName;
        MultiJoinSchema = multiJoinSchema;
        Description = description;
        QueryType = queryType;
    }

    public String getFieldName() {
        return FieldName;
    }

    public void setFieldName(String fieldName) {
        FieldName = fieldName;
    }

    public String getFieldType() {
        return FieldType;
    }

    public void setFieldType(String fieldType) {
        FieldType = fieldType;
    }

    public boolean isDBField() {
        return IsDBField;
    }

    public void setDBField(boolean DBField) {
        IsDBField = DBField;
    }

    public boolean isQueryField() {
        return IsQueryField;
    }

    public void setQueryField(boolean queryField) {
        IsQueryField = queryField;
    }

    public boolean isJoinQuery() {
        return IsJoinQuery;
    }

    public void setJoinQuery(boolean joinQuery) {
        IsJoinQuery = joinQuery;
    }

    public String getJoinFieldName() {
        return JoinFieldName;
    }

    public void setJoinFieldName(String joinFieldName) {
        JoinFieldName = joinFieldName;
    }

    public String getJoinTableName() {
        return JoinTableName;
    }

    public void setJoinTableName(String joinTableName) {
        JoinTableName = joinTableName;
    }

    public String getJoinTableAsName() {
        return JoinTableAsName;
    }

    public void setJoinTableAsName(String joinTableAsName) {
        JoinTableAsName = joinTableAsName;
    }

    public String getJoinSchema() {
        return JoinSchema;
    }

    public void setJoinSchema(String joinSchema) {
        JoinSchema = joinSchema;
    }

    public String getJoinMainField() {
        return JoinMainField;
    }

    public void setJoinMainField(String joinMainField) {
        JoinMainField = joinMainField;
    }

    public int getJoinIndex() {
        return JoinIndex;
    }

    public void setJoinIndex(int joinIndex) {
        JoinIndex = joinIndex;
    }

    public String getJoinSelfCondition() {
        return JoinSelfCondition;
    }

    public void setJoinSelfCondition(String joinSelfCondition) {
        JoinSelfCondition = joinSelfCondition;
    }

    public String getMultiJoinFieldName() {
        return MultiJoinFieldName;
    }

    public void setMultiJoinFieldName(String multiJoinFieldName) {
        MultiJoinFieldName = multiJoinFieldName;
    }

    public String getMultiJoinMainField() {
        return MultiJoinMainField;
    }

    public void setMultiJoinMainField(String multiJoinMainField) {
        MultiJoinMainField = multiJoinMainField;
    }

    public String getMultiJoinTableName() {
        return MultiJoinTableName;
    }

    public void setMultiJoinTableName(String multiJoinTableName) {
        MultiJoinTableName = multiJoinTableName;
    }

    public String getMultiJoinSchema() {
        return MultiJoinSchema;
    }

    public void setMultiJoinSchema(String multiJoinSchema) {
        MultiJoinSchema = multiJoinSchema;
    }

    public String getDescription() {
        return Description;
    }

    public void setDescription(String description) {
        Description = description;
    }

    public String getQueryType() {
        return QueryType;
    }

    public void setQueryType(String queryType) {
        QueryType = queryType;
    }
}
